package com.bd.scm.dao.mapper.door;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bd.scm.domain.dto.door.DoorAccessDto;
import com.bd.scm.domain.dto.door.DoorDto;
import com.bd.scm.domain.models.door.DoorAccess;
import com.bd.scm.domain.models.door.DoorInfo;
import org.apache.ibatis.annotations.Param;

/**
 *  门Mapper接口
 *  User: _Cps
 *  Date: 2019.08.28 16:45
 */
public interface DoorAccessMapper extends BaseMapper<DoorAccess> {

    IPage<DoorAccess> getDoorAccessList(Page<DoorAccess> doorAccessPage, DoorAccessDto doorAccessDto);

    Integer doorAccess(DoorAccessDto doorAccessDto,@Param("ip") String ip,@Param("operator") String operator);

    Integer doorAccessRemove(DoorAccessDto doorAccessDto,@Param("ip") String ip,@Param("operator") String operator);
}
